/**  
* @Title: MovieInfo.java
* @Package org.zsen.crawler
* @Description TODO
* @author ZhangSen
* @date 2015年11月2日 下午12:25:03
* @version 
*/ 
package org.zsen.crawler.xunbo;

import java.util.ArrayList;

/**
* @ClassName: MovieInfo
* @Description: 
* @author ZhangSen
* @date 2015年11月2日 下午12:25:03
*
*/
public class MovieInfo {
	public String title;
	public String time;
	public String actors;
	public String region;
	public String type;
	public String drama;
	private  ArrayList<DownLoadLink> links=new ArrayList<DownLoadLink>(4);
	@Override
	public String toString() {
		return "\n#################\nMovieInfo :\ntitle:" + title + "\ntime:" + time + "\nactors:" + actors + "\nregion:" + region + "\ntype:"
				+ type + "\ndrama:" + drama + "\nlinks:"+links.toString()+"\n#################";
	}
	public void setLinks(String name,String link)
	{
		links.add(new DownLoadLink(name,link));
	}
	public  ArrayList<DownLoadLink> getLinks()
	{
		return links;
	}
	
	public void clear()
	{
		title=null;
		time=null;
		actors=null;
		region=null;
		type=null;
		drama=null;
		links.clear();
	}
	
	class DownLoadLink{
		private String name;
		private String Link;
		public DownLoadLink(String name,String link)
		{
			this.name=name;
			this.Link=link;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getLink() {
			return Link;
		}
		public void setLink(String link) {
			Link = link;
		}
		@Override
		public String toString() {
			return "\nDownLoadLink:\nname:" + name + "\nLink：" + Link;
		}
		
	}
	

}
